﻿namespace BJYJ_Admin.Application.System.Dtos;

/// <summary>
/// 主键IDDto
/// </summary>
public class DeptIDDto : BaseIdInput
{

}
/// <summary>
/// 搜索DTO
/// </summary>
public class DeptSearchDto : BasePageRequest
{
    /// <summary>
    /// 部门名称
    /// </summary>
    public string NAME { get; set; }

    /// <summary>
    /// 部门代码
    /// </summary>
    public string CODE { get; set; }

    /// <summary>
    /// 父级ID
    /// </summary>
    public int? PID { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 深度
    /// </summary>
    public int? DEPTH { get; set; }
}
/// <summary>
/// 新增部门DTO
/// </summary>
public class DeptInsertDto
{
    /// <summary>
    /// 部门名称
    /// </summary>
    public string NAME { get; set; }

    /// <summary>
    /// 部门代码
    /// </summary>
    public string CODE { get; set; }

    /// <summary>
    /// 地址
    /// </summary>
    public string ADDRESS { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    public string PHONE { get; set; }

    /// <summary>
    /// 联系人
    /// </summary>
    public string LXR { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 父级ID
    /// </summary>
    public int? PID { get; set; }

    /// <summary>
    /// 父级路径
    /// </summary>
    public string PARENT_PATH { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 深度
    /// </summary>
    public int? DEPTH { get; set; }

    /// <summary>
    /// 所属主区域ID
    /// </summary>
    public int? AREAID { get; set; }

    /// <summary>
    /// 所属主区域代码
    /// </summary>
    public string AREACODE { get; set; }

    /// <summary>
    /// 所属区域IDS
    /// </summary>
    public string AREAIDS { get; set; }

    /// <summary>
    /// 所属区域CODES
    /// </summary>
    public string AREACODES { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string MEMO { get; set; }
}

/// <summary>
/// 部门状态DTO
/// </summary>
public class DeptStatusDto : BaseIdInput
{
    /// <summary>
    /// 状态0启用1禁用
    /// </summary>
    public int STATUS { get; set; }
}


/// <summary>
/// 部门列表DTO
/// </summary>
public class DeptListOutDto
{


    /// <summary>
    /// 备  注:主键
    /// 默认值:
    ///</summary>
    public int ID { get; set; }

    /// <summary>
    /// 备  注:部门名称
    /// 默认值:
    ///</summary>
    public string NAME { get; set; }

    /// <summary>
    /// 备  注:部门代码
    /// 默认值:
    ///</summary>
    public string CODE { get; set; }

    /// <summary>
    /// 备  注:部门地址
    /// 默认值:
    ///</summary>
    public string ADDRESS { get; set; }

    /// <summary>
    /// 备  注:联系电话
    /// 默认值:
    ///</summary>
    public string PHONE { get; set; }

    /// <summary>
    /// 备  注:联系人
    /// 默认值:
    ///</summary>
    public string LXR { get; set; }

    /// <summary>
    /// 备  注:状态0启用1禁用
    /// 默认值:
    ///</summary>
    public int? STATUS { get; set; }

    /// <summary>
    /// 备  注:父级ID
    /// 默认值:
    ///</summary>
    public int? PID { get; set; }

    /// <summary>
    /// 备  注:完整路径
    /// 默认值:
    ///</summary>
    public string PARENT_PATH { get; set; }

    /// <summary>
    /// 备  注:排序
    /// 默认值:
    ///</summary>
    public int? ORDER_NUM { get; set; }

    /// <summary>
    /// 备  注:深度
    /// 默认值:
    ///</summary>
    public int? DEPTH { get; set; }

    /// <summary>
    /// 备  注:对应主区划表ID
    /// 默认值:
    ///</summary>
    public int? AREAID { get; set; }

    /// <summary>
    /// 备  注:对应主区划表代码
    /// 默认值:
    ///</summary>
    public string AREACODE { get; set; }

    /// <summary>
    /// 备  注:对应子区划表ID串
    /// 默认值:
    ///</summary>
    public string AREAIDS { get; set; }

    /// <summary>
    /// 备  注:对应子区划表代码串
    /// 默认值:
    ///</summary>
    public string AREACODES { get; set; }

    /// <summary>
    /// 备  注:备注
    /// 默认值:
    ///</summary>
    public string MEMO { get; set; }

    /// <summary>
    /// 备  注:是否有子节点
    /// </summary>
    public bool HASCHILDREN { get; set; }

}
